﻿#pragma once

#include "Render/PreRender/PreRenderWidgets.h"

class CVulkanWindow;

class CVulkanTriangleWidget
{
public:
    void BindData(const SPreRenderTriangleWidget& Data);
   
    void Draw(vk::CommandBuffer CommandBuffer);

protected:
    SPreRenderTriangleWidget TriangleData;

};

//绘制所有的三角形控件
class CVulkanTriangleWidgets
{
public:
    ~CVulkanTriangleWidgets();  

    void PreProcess(const TVector<SPreRenderTriangleWidget>& AllTriangleData);

    void CreateSelfRecordTasks(CVulkanWindow *InRenderSurface
        ,SRenderCommandBuffers &OutCmdBuffersToExecute);
protected:

    TVector<CVulkanTriangleWidget> TriangleWidgets;

    vk::CommandBuffer CommandBuffer;

};
